<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label label-required">用户名称</label>
            <div class="layui-input-block">
                <input name="username" required placeholder="请输入用户名称" value="{$list.username}" class="layui-input">
                <input type="hidden" name="_csrf_" value="{:systoken('edit_cs')}">
                <input type="hidden" name="id" value="{$list.id}">
            </div>
        </div>
        <!--<div class="layui-form-item">
            <label class="layui-form-label label-required">手机号码</label>
            <div class="layui-input-block">
                <input name="tel" required placeholder="请输入手机号码" value="{$list.tel}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">登录密码</label>
            <div class="layui-input-block">
                <input name="pwd" placeholder="留空则不更改密码"" value="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">QQ</label>
            <div class="layui-input-block">
                <input name="qq" placeholder="请输入QQ号" value="{$list.qq}" class="layui-input">
            </div>
        </div>-->
        <div class="layui-form-item">
            <label class="layui-form-label label-required">链接</label>
            <div class="layui-input-block">
                <input name="url" placeholder="请输入链接" value="{$list.url}" class="layui-input" required>
            </div>
        </div>

        <!--<div class="layui-form-item">
            <label class="layui-form-label">微信</label>
            <div class="layui-input-block">
                <input name="wechat" placeholder="请输入微信" value="{$list.wechat}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">二维码</label>
            <table class="layui-table">
                <thead>
                <tr>
                    <th class="text-center">二维码</th>
                </tr>
                <tr>
                    <td width="90px" class="text-center"><input name="qr_code" type="hidden" value="{$list.qr_code|default=''}"></td>
                </tr>
                </thead>
            </table>
            <script>$('[name="qr_code"]').uploadOneImage(), $('[name="image"]').uploadMultipleImage()</script>
        </div>-->
        <div class="layui-inline">
            <label class="layui-form-label label-required">上班时间</label>
            <div class="layui-input-inline">
                <input data-time-range type="text" class="layui-input" name='time' id="time" value="{$list.btime}:00 - {$list.etime}:00" placeholder=" - " required>
            </div>
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>提交</button>
        <button class="layui-btn layui-btn-danger" type='button' data-close>取消</button>
    </div>

    <script>window.form.render();</script>
    <script>
    laydate.render({ 
    elem: '#time'
    ,type: 'time'
    ,range:'-'
    ,done: function(value, date, endDate){
        console.log(value); //得到日期生成的值，如：2017-08-18
    }
    });
    </script>
</form>
